package cn.tedu._07weibo.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class UserRegParam {
    @Schema(name = "用户名",required = true)
    @Pattern(regexp ="^(?!.*(.)(\1{2,}))(?=.{4,12}$).*$")
    private String username;
    @Schema(name = "用户密码",required = true,type = "string")
    private String password;
    @Schema(name = "用户昵称",required = true,type = "string")
    private String nickname;
}
